




/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/08/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/ 
package com.application.sys.service;
import java.util.List;
import com.manager.BaseService;
import com.manager.commons.page.PageBean;
import com.application.sys.entity.Sys;
import com.application.sys.struts.form.SysForm;
import com.application.sys.dao.SysDAO;
 /**
 * 
 * Description:SysService<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 左磊 QQ：30575951    <br />
 * 
 * History: <br />
 * 
 * 02/08/2012 
 * 
 */
public class SysService extends BaseService
{
	private SysDAO sysDAO;

	public SysDAO getSysDAO() {
		return this.sysDAO;
	}

	public void setSysDAO(SysDAO sysDAO) {
		this.sysDAO = sysDAO;
	}
        

        public Sys getSys(Sys sys) {
		return (Sys) this.getBaseDao().queryByPk(sys, sys.getId());
	}
	
	public Integer getAllCountSys(SysForm sysForm){
		return this.sysDAO.getAllCountSys(sysForm);
	}
	
	public List<Sys> searchSys(SysForm sysForm, PageBean pageBean) throws Exception {
		List<Sys> sysList = (List) this.sysDAO.searchSys(sysForm, pageBean);
		return sysList;
	}
        
        public void deleteSyss(SysForm sysForm){
	   this.sysDAO.deleteSyss(sysForm);	 
	}
        public List searchSys(final SysForm sysForm) {
    		List<Sys> sysList = (List) this.sysDAO.searchSys(sysForm);
    		return sysList;
    	}
}
